package com.think.teaching.service;

import com.think.teaching.model.LivingLesson;

import java.util.List;

import org.springframework.stereotype.Service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;

/**
 * <p>
 * 直播课直播课程节 服务类
 * </p>
 *
 * @author think
 * @since 2020-08-12
 */
@Service
public interface LivingLessonService extends IService<LivingLesson> {

	LivingLesson AddLivingLesson(LivingLesson livingLesson);

	LivingLesson UpdateLivingLesson(LivingLesson livingLesson);

	LivingLesson GetLivingLesson(Integer id);

	List<LivingLesson> SearchLivingLessonWithKey(String key, Boolean withoutBan);
	
	IPage<LivingLesson> ListLivingLessonWithTagAndType(Integer count, Integer page, Integer type, Integer tag, Boolean withoutBan);

	LivingLesson SetLivingLessonState(Integer id, Integer state);
}
